﻿<%@ Control Language="C#" Inherits="Yuanlin.Business.CompanyGreenNumEditControl, Yuanlin.Business" AutoEventWireup="true" %>

<script type="text/javascript">
<!--
function CheckData()
{
    var account = getObject('<%= greenNumValuedTextBox.ClientID %>').value.Trim();
    if (!isDigit(account)) {
        alert("绿商号必须是11位或12位数字!");
        getObject('<%= greenNumValuedTextBox.ClientID %>').focus();

        return false;
    } else if (!(account.length == 11 || account.length == 12)) {
        alert("绿商号必须是11位或12位数字!");
        getObject('<%= greenNumValuedTextBox.ClientID %>').focus();
        return false;
    }
    return true;
}
//-->
</script>

<div class="AdminArea">
    <fieldset>
        <legend><nwap:ResourceLiteral runat="server" ResourceName="System_Applications_Yuanlin_EditCompanyGreenNum" ResourceFile="ControlPanelResources.xml"></nwap:ResourceLiteral></legend>

        <div class="FormRow">
            <div class="LargerFieldNameRequireCharacter">
                <nwap:ResourceLabel runat="Server" CssClass="RedColor" ResourceFile="ControlPanelResources.xml" ResourceName="RequireCharacter" />
                <nwap:ResourceLabel runat="Server" ControlToLabel="greenNumValuedTextBox" ResourceFile="ControlPanelResources.xml" ResourceName="System_Applications_Yuanlin_CompanyGreenNum_GreenNum" />
            </div>            
            <nwap:ValuedTextBox Runat="server" CssClass="InputField MiddleWidth" id="greenNumValuedTextBox" />
        </div>
        <div class="FormRow SubmitButtonRow">
            <nwap:Resourcebutton id="SaveButton" ResourceName="Save" CssClass="Button" Runat="server" OnClientClick="return CheckData();"></nwap:Resourcebutton>&nbsp;&nbsp;&nbsp;&nbsp;
            <nwap:Resourcebutton id="BackButton" ResourceName="Back" CssClass="Button" Runat="server"></nwap:Resourcebutton>
        </div>	
    </fieldset>
</div> 

